<?php
// No directAcces
defined( '_AppBackMiage' ) or die( 'Restricted access' );
if(isAdministrateur ()){
    include_once (DS."backoffice/include/header.php");
    include_once( DS."backoffice/include/toppanel_utilisateurs.php");
    $nbrEntreprises = Entreprise::globalCount();
    $nbrEtudiants  = Etudiant::globalCount();
    $nbrEnseignants = Enseignant::globalCount();
    $nbrContact = ContactEntreprise::globalCount();
    ?>
    <div id="wrapper">
        <div id="content">
            <ul class="dashboard">
                <li><?php echo $nbrEtudiants; ?> : Etudiants</li>
                <li><?php echo $nbrEnseignants; ?> : Enseignants</li>
                <li><?php echo $nbrContact; ?> : Contacts Entreprise</li>
                <li><?php echo $nbrEntreprises; ?> : Entreprises</li>
            </ul>
        </div>
    <?php
    include_once (DS."backoffice/include/sidebar.php");
    include_once (DS."backoffice/include/footer.php");
}
else
{
    redirectTo(URLBACK);
}
?>